package com.jiangjiang.eshop.wms.convert;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jiangjiang.eshop.wms.domain.SaleDeliveryOrderEntity;
import com.jiangjiang.eshop.wms.dto.SaleDeliveryOrderDTO;
import org.mapstruct.Mapper;

/**
 * @Author Jianghaowen
 * @Date 2021/9/17
 * @Description: TODO
 * @Version V1.0
 **/
@Mapper(componentModel = "spring")
public interface SaleDeliveryOrderConvert {
    Page<SaleDeliveryOrderDTO> convertPage2DTO(Page<SaleDeliveryOrderEntity> page);

    SaleDeliveryOrderEntity convertDTO2Entity(SaleDeliveryOrderDTO deliveryOrderDTO);

    SaleDeliveryOrderDTO convert2DTO(SaleDeliveryOrderEntity byId);
}
